<?php

#################################################################
#								HTML
#################################################################

/**
 * Header component register as 'component/footer' 
 * 
 * $vars['content']			Page title (String)
 */

if($_CONTEXT=='HTML'){

	$_CSS_STACK->push(blg_get_site_url().'component/footer.css', TRUE);
	$_JS_STACK->push(blg_get_site_url().'component/footer.js', TRUE);

	$year= date("Y");
	$site_txt= blg_get_config('site_title');
	$site_url= blg_get_site_url();
	$contact_txt= blg_echo('contact');
	$contact_url= blg_get_site_url().'contact';
	$enjoy= blg_echo('enjoy');
	
echo <<<HTML
<div class="blg_footer_main_div">
	&copy; $year &nbsp;-&nbsp; <a class="footer" target="top" href="$site_url">$site_txt</a> &nbsp;-&nbsp; <a class="footer" target="top" href="$contact_url">$contact_txt</a> &nbsp;-&nbsp; $enjoy	
</div>
HTML;

}
#################################################################
#								JS
#################################################################
elseif($_CONTEXT=='JS'){ ?>

<?php }
#################################################################
#								CSS
#################################################################
elseif($_CONTEXT=='CSS'){ ?>

div.blg_footer_main_div{
	position: absolute;
	bottom: 0;
	height: 26px;
	width: 100%;
	padding: 12px 0 0 0;
	
	color: <?php echo blg_color('grey', '4')?>;		
	text-align: center;	
	font-family: "Verdana";
	font-size: 11px;
	
	background-image: url('<?php echo blg_get_site_url()?>_graphics/default/structure/bg-bottom-footer.png');
	background-position: top;
}

a.footer:link, a.footer:visited, a.footer:active { color: <?php echo blg_color('grey', '4')?> !important; text-decoration: none;}
a.footer:hover { color: <?php echo blg_color('grey', '4')?>  !important; text-decoration: underline;}


<?php }
